package com.school.util;

import org.springframework.web.bind.annotation.RequestParam;

public interface Tool<T> {

	public Result<T> findAll(@RequestParam(defaultValue = "1",name="page")int page, @RequestParam(defaultValue = "10",name="limit")int pageSize,T t);
	
	public Result<T> findbyId(int id);
	
	public int add(T t);
	
	public int edit(T t);
	
	public int del(int id);
	
	public int delbatch( @RequestParam(name="id[]")int[] id);

}
